package dao;

import transferobject.Bid;

/**
 * Bid DAO interface. This interface
 * needs to be implemented by the all BidDAO
 * @author Ilya_Poliakov
 */
public interface BidDao {
	/**
	 * Delete Bid by bid ID
	 * @return bid was deleted
	 */
	public boolean deleteBid(int bidId);
	/**
	 * Search Bid by ID
	 * @return Bid Transfer Object
	 */
	public Bid findBid(int bidId);
	/**
	 * Insert Bid using Bid TransferObject
	 * @return bid ID
	 */
	public int insertBid(Bid bid);
	/**
	 * Update Bid from Bid TransferObject
	 * @return Bid has been updated
	 */
	public boolean updateBid(Bid bid);
}
